/*
 * BottomWidget.h
 *
 *  Created on: 2009-02-12
 *      Author: ck
 */

#ifndef BOTTOMWIDGET_H_
#define BOTTOMWIDGET_H_
#include <QWidget>
#include <QtGui>
#include <QAbstractSocket>

class BottomWidget : public QWidget
{
	Q_OBJECT
public:
	BottomWidget(QWidget *parent = 0);
	virtual ~BottomWidget();

private:
	QLabel * lblStatus;
	QLabel * lblTableStatus;
	QLineEdit *edHost;
	QLineEdit *edPort;
	QPushButton *btnReady;
	QPushButton *btnLeave;
	QPushButton *btnConnect;

//private slots:


public slots:
	void onConnStateChanged(QAbstractSocket::SocketState);
	void onConnectClicked();
	void onSit();
	void onLeave();
	void onReady();

signals:
	void connectClicked(QString, QString);
	void readyClicked();
	void leaveClicked();
};

#endif /* BOTTOMWIDGET_H_ */
